import request from '@/utils/request'
export function filetree(data) {
    return request({
        url: '/file/tree',
        method: 'post',
        data
    })
}
export function preview(fileId) {
    return request({
        url: '/file/preview',
        method: 'post',
        params:{fileId}
    })
}
export function download(fileId) {
    return request({
        url: '/file/download',
        method: 'post',
        params:{fileId}
    })
}
export function statistics() {
    return request({
        url: '/file/statistics',
        method: 'get'
    })
}
